home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
c
/
tc2pat2.zip
/
PATPRNTF.BAT
< prev
next >
Wrap
DOS Batch File
|
1988-10-06
|
1KB
|
59 lines
echo off
echo
echo This batch file will install the replacement .OBJ modules to fix
echo the printf() bug with the %.0f format specification.
echo
echo Syntax: PATPRNTF [LIB-directory]
echo Example: PATPRNTF C:\TC\LIB\
echo
echo If you specify a path name, the last '\' is required. If no
echo path name is specified, the .LIB files in the current
echo directory are used.
echo
echo TLIB.EXE must be in the current directory or on your DOS exec path.
echo
echo Hit any key to patch printf, ^C to exit
echo
pause
if not exist %1*.lib goto HELP
copy small.obj xcvt.obj
tlib /E /0 %1maths -+xcvt
if errorlevel 1 goto ERROR
del xcvt.obj
copy compact.obj xcvt.obj
tlib /E /0 %1mathc -+xcvt
if errorlevel 1 goto ERROR
del xcvt.obj
copy medium.obj xcvt.obj
tlib /E /0 %1mathm -+xcvt
if errorlevel 1 goto ERROR
del xcvt.obj
copy large.obj xcvt.obj
tlib /E /0 %1mathl -+xcvt
if errorlevel 1 goto ERROR
del xcvt.obj
copy huge.obj xcvt.obj
tlib /E /0 %1mathh -+xcvt
if errorlevel 1 goto ERROR
del xcvt.obj
if exist %1*.bak del %1*.bak
goto DONE
:ERROR
echo ERROR adding module to library
echo installation terminated
goto DONE
:HELP
echo
echo ERROR: invalid path specification
:DONE